<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <jsp:include page="/inc/head.jsp"/>
    <title>部门管理</title>
</head>
<body>
<jsp:include page="/inc/top.jsp"/>
<div class="container">
    <jsp:include page="inc.jsp"/>
    <h3 style="text-align: center">部门添加</h3>
    <hr>
    <form action="" method="post" class="form-horizontal">
        <div class="form-group">
            <label class="col-sm-2 control-label">部门名称:</label>
            <div class="col-sm-6">
                <input type="text" class="form-control" name="name" placeholder="输入栏目名称">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">部门类型:</label>
            <div class="col-sm-6">
                <select class="form-control" name="type">
                    <c:forEach var="type" items="${types}">
                        <option value="${type.key}">${type.value}</option>
                    </c:forEach>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">部门电话:</label>
            <div class="col-sm-6">
                <input type="text" class="form-control" name="phone" placeholder="输入部门电话">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">添加部门</button>
                <button type="reset" class="btn btn-default">重置信息</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>
